package top.toptimus.dto.accessory;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * 订单辅料DTO
 */
@NoArgsConstructor
@Data
public class OrderAccessoryDto {
    private String id;
    private String name;
    private List<DtoForChooseContrasts> dtoForChooseContrasts = new ArrayList<>();

    public OrderAccessoryDto(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public void build(DtoForChooseContrasts dtoForChooseContrasts) {
        this.dtoForChooseContrasts.add(dtoForChooseContrasts);
    }
}

